package com.wangwei.authoritySystem.service;

import com.wangwei.authoritySystem.pojo.Permission;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wangwei.authoritySystem.vo.PermissionQueryVo;

import java.util.List;

/**
 *
 */
public interface PermissionService extends IService<Permission> {
    //根据用户ID查询用户权限列表
    List<Permission> findPermissionListByUserId(Long userId);
    //查询菜单列表
    List<Permission> findPermissionList(PermissionQueryVo permissionQueryVo);
    //查询上级菜单列表
    List<Permission> findParentPermissionList();

    //判断是否有子菜单
    boolean hasChildren(Long id);
}
